const likeService = require("../service/moment.like.service");
class MomentLikeController {
  async loveCreate(ctx, next) {
    const { moment_id } = ctx.query;
    const result = await likeService.loveCreate(moment_id);
    ctx.body = result;
  }
  async hateCreate(ctx, next) {
    try {
      const { moment_id } = ctx.query;
      const result = await likeService.hateCreate(moment_id);
      ctx.body = result;
    } catch (error) {
      console.log(error);
    }
  }
}

module.exports = new MomentLikeController();
